package org.come.Jpanel;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

import com.tool.btn.FormsOnOffBtn;

/**
 * @author HGC<br>
 * @time 2020年4月28日 下午7:31:45<br>
 * @class 类名:TrueFeedbackAwardJPanel 奖励一览面板 编号:110<br>
 */
public class TrueFeedbackAwardJPanel extends JPanel {
    
    public TrueFeedbackAwardJPanel() {
        setPreferredSize(new Dimension(336,301));
        setOpaque(false);
        setLayout(null);

        // 关闭按钮事件
        FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 110);
        offBtn.setBounds(336 - 37, 10, 25, 25);
        this.add(offBtn);
    }

    private ImageIcon icon;
    
    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        if(icon == null){
            icon = new ImageIcon("inkImg/old/background/S199.png");
        }
        g.drawImage(icon.getImage(), 0, 0, null);
    }

}
